﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="DistrictAdd.aspx.cs" Inherits="web.admin.DistrictAdd" 
    Title="省份添加" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Default_Item" id="TD1"><a href="<%=Url_Back%>"><%=flag%></a></td>
                                <td class="Current_Item" id="TD2"><%=flag1%></td>
                            </tr>
                        </tbody>
                    </table>
                    
                </td>
            </tr>
        </tbody>
    </table>  

      



<asp:DetailsView ID="districtInfo" runat="server" AutoGenerateRows="False" SkinID="orange" DataKeyNames="Id" 
                        DefaultMode="Insert" >
                        <Fields>
                            <asp:TemplateField HeaderText="名称：">
                                <InsertItemTemplate>
                                   <asp:TextBox ID="name" runat="server"></asp:TextBox>
                                </InsertItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="排序值：" >
                                <InsertItemTemplate>
                                    <asp:TextBox ID="ordervalue" runat="server"/>
                                </InsertItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField>
                                 <InsertItemTemplate>
                                    <asp:Button ID="InsertButton" runat="server"  CausesValidation="True" Text="添加" OnClick="InsertButton_click"/> &nbsp;
                                    <asp:Button ID="InsertCancelButton" runat="server" CausesValidation="False" Text="取消" OnClick="CancelButton_click"/>
                                </InsertItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>










    
    
    </asp:Content>